<?

include_once 'index.php';

?>


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>feiraseventos</title>
		<meta name="author" content="Matheus" />
		<!-- Date: 2012-02-22 -->
	</head>
	<body>
			<h3 style="color: blue">Feiras e Eventos</h3>
		<p style="border-bottom: 1px solid"></p>
		<br>
		<?
			$query = "SELECT * FROM  eventos";
			$result = mysql_query($query);
			
			if($result){
				while ($row = mysql_fetch_assoc($result)) {
					echo $row['nome']. '-' .$row['descricao']. '-'. $row['data'].'<br>';
				}
			}
		?>
		
	</body>
</html>
